﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSConsoleTest
{
    class TestRankTwoArray : BaseConsoleTest
    {
        public void printDescription()
        {
            Console.WriteLine("--- Rank-2 array ---");
        }

        public void doTest()
        {
            int[,] array = new int[,] { { 1, 2, 3 }, { 4, 5, 6 } };
            Console.WriteLine("array is { { 1, 2, 3 }, { 4, 5, 6 } }");
            Console.WriteLine("array rank : {0}", array.Rank);
            Console.WriteLine("array length : {0}", array.Length);
            foreach (int value in array)
            {
                Console.Write("{0} ", value);
            }
            Console.WriteLine();
        }
    }
}
